home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1995 June
/
MacFormat 25.iso
/
Shareware City
/
Developers
/
DSKA 1.4 Folder
/
dsk_twid.inc
next >
Wrap
Text File
|
1994-08-07
|
17KB
|
289 lines
;-----------------------------------------------------------;
; DSK_TWID.ASM ;
; (C) 1992-93 ;
; Texas Instruments Inc. ;
; By: Keith Larson ;
; TMS320Cxx DSP Applications ;
; ;
; This table contains a sine/cosine lookup table stored ;
; in bit-reversed addressing order. ;
;-----------------------------------------------------------;
;-----------------------------------------------;
; Complex FFT Data array allocation ;
;-----------------------------------------------;
_D_base .space 0x0010 ; 2*FFT_S word FFT data array
;_D_base+1 ;
.space 0x1FF0 ;
;-----------------------------------------------;
; Bit reversed Twiddle lookup Table ;
;-----------------------------------------------;
_T_base:
.word 32767 ;Normaly 0! Used for raised
; _T_base+1
.word -32768 ;cosine window from this table
.word -32768 ; -90.00 -1.000000
.word 0 ; 1 000000010 000000000 -0.000000
.word -23170 ;-135.00 -0.707107
.word -23170 ; 2 000000100 100000000 -0.707107
.word -23170 ; -45.00 -0.707107
.word 23170 ; 3 000000110 100000000 +0.707107
.word -12539 ;-157.50 -0.382683
.word -30273 ; 4 000001000 010000000 -0.923880
.word -30273 ; -67.50 -0.923880
.word 12539 ; 5 000001010 010000000 +0.382683
.word -30273 ;-112.50 -0.923880
.word -12539 ; 6 000001100 110000000 -0.382683
.word -12539 ; -22.50 -0.382683
.word 30273 ; 7 000001110 110000000 +0.923880
.word -6392 ;-168.75 -0.195090
.word -32138 ; 8 000010000 001000000 -0.980785
.word -32138 ; -78.75 -0.980785
.word 6392 ; 9 000010010 001000000 +0.195090
.word -27245 ;-123.75 -0.831470
.word -18204 ; 10 000010100 101000000 -0.555570
.word -18204 ; -33.75 -0.555570
.word 27245 ; 11 000010110 101000000 +0.831470
.word -18204 ;-146.25 -0.555570
.word -27245 ; 12 000011000 011000000 -0.831470
.word -27245 ; -56.25 -0.831470
.word 18204 ; 13 000011010 011000000 +0.555570
.word -32138 ;-101.25 -0.980785
.word -6392 ; 14 000011100 111000000 -0.195090
.word -6392 ; -11.25 -0.195090
.word 32138 ; 15 000011110 111000000 +0.980785
.word -3211 ;-174.38 -0.098017
.word -32610 ; 16 000100000 000100000 -0.995185
.word -32610 ; -84.38 -0.995185
.word 3211 ; 17 000100010 000100000 +0.098017
.word -25330 ;-129.38 -0.773010
.word -20787 ; 18 000100100 100100000 -0.634393
.word -20787 ; -39.38 -0.634393
.word 25330 ; 19 000100110 100100000 +0.773010
.word -15446 ;-151.88 -0.471397
.word -28898 ; 20 000101000 010100000 -0.881921
.word -28898 ; -61.88 -0.881921
.word 15446 ; 21 000101010 010100000 +0.471397
.word -31357 ;-106.88 -0.956940
.word -9512 ; 22 000101100 110100000 -0.290285
.word -9512 ; -16.88 -0.290285
.word 31357 ; 23 000101110 110100000 +0.956940
.word -9512 ;-163.13 -0.290285
.word -31357 ; 24 000110000 001100000 -0.956940
.word -31357 ; -73.13 -0.956940
.word 9512 ; 25 000110010 001100000 +0.290285
.word -28898 ;-118.13 -0.881921
.word -15446 ; 26 000110100 101100000 -0.471397
.word -15446 ; -28.13 -0.471397
.word 28898 ; 27 000110110 101100000 +0.881921
.word -20787 ;-140.63 -0.634393
.word -25330 ; 28 000111000 011100000 -0.773010
.word -25330 ; -50.63 -0.773010
.word 20787 ; 29 000111010 011100000 +0.634393
.word -32610 ; -95.63 -0.995185
.word -3211 ; 30 000111100 111100000 -0.098017
.word -3211 ; -5.63 -0.098017
.word 32610 ; 31 000111110 111100000 +0.995185
.word -1607 ;-177.19 -0.049068
.word -32728 ; 32 001000000 000010000 -0.998795
.word -32728 ; -87.19 -0.998795
.word 1607 ; 33 001000010 000010000 +0.049068
.word -24279 ;-132.19 -0.740951
.word -22005 ; 34 001000100 100010000 -0.671559
.word -22005 ; -42.19 -0.671559
.word 24279 ; 35 001000110 100010000 +0.740951
.word -14010 ;-154.69 -0.427555
.word -29621 ; 36 001001000 010010000 -0.903989
.word -29621 ; -64.69 -0.903989
.word 14010 ; 37 001001010 010010000 +0.427555
.word -30852 ;-109.69 -0.941544
.word -11039 ; 38 001001100 110010000 -0.336890
.word -11039 ; -19.69 -0.336890
.word 30852 ; 39 001001110 110010000 +0.941544
.word -7961 ;-165.94 -0.242980
.word -31785 ; 40 001010000 001010000 -0.970031
.word -31785 ; -75.94 -0.970031
.word 7961 ; 41 001010010 001010000 +0.242980
.word -28106 ;-120.94 -0.857729
.word -16846 ; 42 001010100 101010000 -0.514103
.word -16846 ; -30.94 -0.514103
.word 28106 ; 43 001010110 101010000 +0.857729
.word -19519 ;-143.44 -0.595699
.word -26319 ; 44 001011000 011010000 -0.803208
.word -26319 ; -53.44 -0.803208
.word 19519 ; 45 001011010 011010000 +0.595699
.word -32413 ; -98.44 -0.989177
.word -4808 ; 46 001011100 111010000 -0.146730
.word -4808 ; -8.44 -0.146730
.word 32413 ; 47 001011110 111010000 +0.989177
.word -4808 ;-171.56 -0.146730
.word -32413 ; 48 001100000 000110000 -0.989177
.word -32413 ; -81.56 -0.989177
.word 4808 ; 49 001100010 000110000 +0.146730
.word -26319 ;-126.56 -0.803208
.word -19519 ; 50 001100100 100110000 -0.595699
.word -19519 ; -36.56 -0.595699
.word 26319 ; 51 001100110 100110000 +0.803208
.word -16846 ;-149.06 -0.514103
.word -28106 ; 52 001101000 010110000 -0.857729
.word -28106 ; -59.06 -0.857729
.word 16846 ; 53 001101010 010110000 +0.514103
.word -31785 ;-104.06 -0.970031
.word -7961 ; 54 001101100 110110000 -0.242980
.word -7961 ; -14.06 -0.242980
.word 31785 ; 55 001101110 110110000 +0.970031
.word -11039 ;-160.31 -0.336890
.word -30852 ; 56 001110000 001110000 -0.941544
.word -30852 ; -70.31 -0.941544
.word 11039 ; 57 001110010 001110000 +0.336890
.word -29621 ;-115.31 -0.903989
.word -14010 ; 58 001110100 101110000 -0.427555
.word -14010 ; -25.31 -0.427555
.word 29621 ; 59 001110110 101110000 +0.903989
.word -22005 ;-137.81 -0.671559
.word -24279 ; 60 001111000 011110000 -0.740951
.word -24279 ; -47.81 -0.740951
.word 22005 ; 61 001111010 011110000 +0.671559
.word -32728 ; -92.81 -0.998795
.word -1607 ; 62 001111100 111110000 -0.049068
.word -1607 ; -2.81 -0.049068
.word 32728 ; 63 001111110 111110000 +0.998795
.word -804 ;-178.59 -0.024541
.word -32758 ; 64 010000000 000001000 -0.999699
.word -32758 ; -88.59 -0.999699
.word 804 ; 65 010000010 000001000 +0.024541
.word -23732 ;-133.59 -0.724247
.word -22594 ; 66 010000100 100001000 -0.689541
.word -22594 ; -43.59 -0.689541
.word 23732 ; 67 010000110 100001000 +0.724247
.word -13278 ;-156.09 -0.405241
.word -29956 ; 68 010001000 010001000 -0.914210
.word -29956 ; -66.09 -0.914210
.word 13278 ; 69 010001010 010001000 +0.405241
.word -30572 ;-111.09 -0.932993
.word -11793 ; 70 010001100 110001000 -0.359895
.word -11793 ; -21.09 -0.359895
.word 30572 ; 71 010001110 110001000 +0.932993
.word -7179 ;-167.34 -0.219101
.word -31971 ; 72 010010000 001001000 -0.975702
.word -31971 ; -77.34 -0.975702
.word 7179 ; 73 010010010 001001000 +0.219101
.word -27684 ;-122.34 -0.844854
.word -17530 ; 74 010010100 101001000 -0.534998
.word -17530 ; -32.34 -0.534998
.word 27684 ; 75 010010110 101001000 +0.844854
.word -18868 ;-144.84 -0.575808
.word -26790 ; 76 010011000 011001000 -0.817585
.word -26790 ; -54.84 -0.817585
.word 18868 ; 77 010011010 011001000 +0.575808
.word -32285 ; -99.84 -0.985278
.word -5602 ; 78 010011100 111001000 -0.170962
.word -5602 ; -9.84 -0.170962
.word 32285 ; 79 010011110 111001000 +0.985278
.word -4011 ;-172.97 -0.122411
.word -32521 ; 80 010100000 000101000 -0.992480
.word -32521 ; -82.97 -0.992480
.word 4011 ; 81 010100010 000101000 +0.122411
.word -25832 ;-127.97 -0.788346
.word -20159 ; 82 010100100 100101000 -0.615232
.word -20159 ; -37.97 -0.615232
.word 25832 ; 83 010100110 100101000 +0.788346
.word -16151 ;-150.47 -0.492898
.word -28511 ; 84 010101000 010101000 -0.870087
.word -28511 ; -60.47 -0.870087
.word 16151 ; 85 010101010 010101000 +0.492898
.word -31581 ;-105.47 -0.963776
.word -8739 ; 86 010101100 110101000 -0.266713
.word -8739 ; -15.47 -0.266713
.word 31581 ; 87 010101110 110101000 +0.963776
.word -10278 ;-161.72 -0.313682
.word -31114 ; 88 010110000 001101000 -0.949528
.word -31114 ; -71.72 -0.949528
.word 10278 ; 89 010110010 001101000 +0.313682
.word -29269 ;-116.72 -0.893224
.word -14732 ; 90 010110100 101101000 -0.449611
.word -14732 ; -26.72 -0.449611
.word 29269 ; 91 010110110 101101000 +0.893224
.word -21403 ;-139.22 -0.653173
.word -24812 ; 92 010111000 011101000 -0.757209
.word -24812 ; -49.22 -0.757209
.word 21403 ; 93 010111010 011101000 +0.653173
.word -32679 ; -94.22 -0.997290
.word -2410 ; 94 010111100 111101000 -0.073565
.word -2410 ; -4.22 -0.073565
.word 32679 ; 95 010111110 111101000 +0.997290
.word -2410 ;-175.78 -0.073565
.word -32679 ; 96 011000000 000011000 -0.997290
.word -32679 ; -85.78 -0.997290
.word 2410 ; 97 011000010 000011000 +0.073565
.word -24812 ;-130.78 -0.757209
.word -21403 ; 98 011000100 100011000 -0.653173
.word -21403 ; -40.78 -0.653173
.word 24812 ; 99 011000110 100011000 +0.757209
.word -14732 ;-153.28 -0.449611
.word -29269 ; 100 011001000 010011000 -0.893224
.word -29269 ; -63.28 -0.893224
.word 14732 ; 101 011001010 010011000 +0.449611
.word -31114 ;-108.28 -0.949528
.word -10278 ; 102 011001100 110011000 -0.313682
.word -10278 ; -18.28 -0.313682
.word 31114 ; 103 011001110 110011000 +0.949528
.word -8739 ;-164.53 -0.266713
.word -31581 ; 104 011010000 001011000 -0.963776
.word -31581 ; -74.53 -0.963776
.word 8739 ; 105 011010010 001011000 +0.266713
.word -28511 ;-119.53 -0.870087
.word -16151 ; 106 011010100 101011000 -0.492898
.word -16151 ; -29.53 -0.492898
.word 28511 ; 107 011010110 101011000 +0.870087
.word -20159 ;-142.03 -0.615232
.word -25832 ; 108 011011000 011011000 -0.788346
.word -25832 ; -52.03 -0.788346
.word 20159 ; 109 011011010 011011000 +0.615232
.word -32521 ; -97.03 -0.992480
.word -4011 ; 110 011011100 111011000 -0.122411
.word -4011 ; -7.03 -0.122411
.word 32521 ; 111 011011110 111011000 +0.992480
.word -5602 ;-170.16 -0.170962
.word -32285 ; 112 011100000 000111000 -0.985278
.word -32285 ; -80.16 -0.985278
.word 5602 ; 113 011100010 000111000 +0.170962
.word -26790 ;-125.16 -0.817585
.word -18868 ; 114 011100100 100111000 -0.575808
.word -18868 ; -35.16 -0.575808
.word 26790 ; 115 011100110 100111000 +0.817585
.word -17530 ;-147.66 -0.534998
.word -27684 ; 116 011101000 010111000 -0.844854
.word -27684 ; -57.66 -0.844854
.word 17530 ; 117 011101010 010111000 +0.534998
.word -31971 ;-102.66 -0.975702
.word -7179 ; 118 011101100 110111000 -0.219101
.word -7179 ; -12.66 -0.219101
.word 31971 ; 119 011101110 110111000 +0.975702
.word -11793 ;-158.91 -0.359895
.word -30572 ; 120 011110000 001111000 -0.932993
.word -30572 ; -68.91 -0.932993
.word 11793 ; 121 011110010 001111000 +0.359895
.word -29956 ;-113.91 -0.914210
.word -13278 ; 122 011110100 101111000 -0.405241
.word -13278 ; -23.91 -0.405241
.word 29956 ; 123 011110110 101111000 +0.914210
.word -22594 ;-136.41 -0.689541
.word -23732 ; 124 011111000 011111000 -0.724247
.word -23732 ; -46.41 -0.724247
.word 22594 ; 125 011111010 011111000 +0.689541
.word -32758 ; -91.41 -0.999699
.word -804 ; 126 011111100 111111000 -0.024541
.word -804 ; -1.41 -0.024541
.word 32758 ; 127 011111110 111111000 +0.999699
;-----------------------------------------------;
; Input Buffer allocation and initialization ;
;-----------------------------------------------;
; 16*FFT_S .set 01000h
_B_base:
.space 16*FFT_S
;-----------------------------------------------;
; Hanning (raised cosine) from twiddle table ;
; No window table is initialized !! ;
;-----------------------------------------------;